<?php

class Light_Log
{
	const ERRORS = 'error';
	const LOG	 = 'log';

	public static function write($data, $file = 'log')
	{
		file_put_contents(LIGHT_LOG_PATH . '/' . $file . '.txt', date('d M Y (h:m:i)') . ' - ' . $data . "\n", FILE_APPEND);
	}
}